package com.tianji.learning.controller;

import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.entity.vo.PointsBoardSeasonVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tianji.learning.service.IPointsBoardSeasonService;
import com.tianji.learning.entity.po.PointsBoardSeason;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 控制器
 * </p>
 *
 * @author lemon
 */
@Api(tags = "历史赛季相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/boards/seasons")
public class PointsBoardSeasonController {

    private final IPointsBoardSeasonService pointsBoardSeasonService;


    @ApiOperation("查询历史赛季信息")
    @GetMapping("list")
    public List<PointsBoardSeasonVO> queryAllSeason() {
        return pointsBoardSeasonService.queryAllSeason();
    }

}
